/*
 * Copyright (C) 2013 tangzhi
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.tangzsoft.pdmviewer.model.impl;

import org.tangzsoft.pdmviewer.model.PdmFile;

/**
 *
 * @author tangzhi
 */
public class PdmFileImpl implements PdmFile {
    
    /**
     * 文件序列.自动生成
     */
    private String id;
    
    /**
     * 文件名
     */
    private String name;
    
    /**
     * 文件绝对路径
     */
    private String path;
    
    /**
     * 标识当前文件的状态
     * 1:open 0:close 
     */
    private String state;
    
    /**
     * 文件针对的数据库
     */
    private String target;
    
    /**
     * PowerDesigner的版本
     */
    private String version;
    
    public PdmFileImpl() {
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getPath() {
        return path;
    }

    @Override
    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public String getState() {
        return state;
    }

    @Override
    public void setState(String state) {
        this.state = state;
    }
    
    @Override
    public String getTarget() {
        return target;
    }

    @Override
    public void setTarget(String target) {
        this.target = target;
    }

    @Override
    public String getVersion() {
        return version;
    }

    @Override
    public void setVersion(String version) {
        this.version = version;
    }
    
    @Override
    public String toString() {
        return name;
    }
}
